package com.jd.gitdemo0702.controller;

import com.jd.gitdemo0702.bean.R;
import com.jd.gitdemo0702.bean.Student;
import com.jd.gitdemo0702.bean.Worker;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Author asus
 * @Description
 * @Date 2025-07-02 18:51:53
 * @Version 1.0
 */
@RestController
public class StudentController {
    @GetMapping("/student")
    public R<Student> st() {
        // 假设来自数据库
        Student student = new Student("10", "lucy", 18, "女");
        R<Student> r = R.success("202","查询成功",student);
        return r;
    }
}
